<!DOCTYPE HTML>
<html>
<head>
    <include file="Public/head" />
<title>计划入库单详情</title>
</head>
<style>
@media print {
	.noprint { display: none; }
	#emstable {page-break-after:always;}
}
</style>
<body>
<div class="pd-20">

	<table class="table table-border table-bordered table-bg">

		<tbody>
			<tr class="text-c">
				<td class="text-r" style="width:25%;background-color:#f5f5f5">生产计划单编号</td>
				<td class="text-l">
					{$detail.purchasing_no}
				</td>
				<td class="text-r" style="width:25%;background-color:#f5f5f5">申请部门：</td>
				<td class="text-l">
					{$detail.section}
				</td>
			<tr class="text-c">
			<tr>
				<td  class="text-r" style="width:25%;background-color:#f5f5f5">产品名称：</td>
				<td class="text-l">
					{$detail.pro_name}
				</td>			
				<td class="text-r" style="width:25%;background-color:#f5f5f5">产品编码：</td>
				<td class="text-l">
					{$detail.pro_no}
				</td>
			<tr class="text-c">
			<tr>
				<td class="text-r" style="width:25%;background-color:#f5f5f5">料号：</td>
				<td class="text-l">
					{$detail.source_no}
				</td>
				<td class="text-r" style="width:25%;background-color:#f5f5f5">规格(g)</td>
				<td class="text-l">
					{$detail.pro_spec}
				</td>				
			</tr>
			
		</tbody>
	</table>
	
	<table class="table table-border table-bordered table-hover table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="11">商品列表</th>
			</tr>
			<tr class="text-c">
				<th width="40">ID</th>
				<th width="40">入库单编号</th>
				<th width="40">商品编码</th>
				<th width="40">商品名称</th>
		
				
				<th width="40">币制</th>
				<th width="40">单价</th>
				<th width="40">数量</th>
				<th width="40">重量(kg)</th>
				<th width="40">规格(g)</th>
				<th width="40">原产国</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr class="text-c">
			 <input  name='gid' type="hidden" style="width:80px;" value="{$vo['id']}"/>
				<td>{$vo.id}</td>
				<td><span>{$vo.plan_receipts_id}</span></td>
				<td>{$vo.goods_no}</td>
				<td>{$vo.goods_name.goods_name}</td>
		
				
				<td>{$vo.currency_name}</td>
				<td>
					{$vo['price']}
				</td>
				<td>
					{$vo['declare_amount']}
				</td>
				<td>
					{$vo['weight']}
				</td>
				<td>
					{$vo['goods_spec']}
				</td>
				<td>
					 <select name="country_code" class="form-control selects" style="width:130px">
                         <option value="">请选择</option>
                         <volist name="country" id="vcc">
                             <if condition="$vcc['country_code'] == $vo['country_code']"><option value="{$vcc.country_code}" selected>{$vcc.country_name}</option></if>
                         </volist>
                     </select>
				</td>
	
			</tr>
			</volist>
		</tbody>
	</table>
	<button onclick="window.print()"  class="btn btn-primary radius noprint">打印</button>
<div class="pages">
{$page}
</div>
</div>

</body>
</html>